package com.baizhi.entity;

import java.io.Serializable;
//评论表实体
public class Comment implements Serializable {
    private Integer id;
    private String content;//评论内容
    private Integer zan;//点赞个数

    public Comment() {
    }

    public Comment(Integer id, String content, Integer zan) {
        this.id = id;
        this.content = content;
        this.zan = zan;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getZan() {
        return zan;
    }

    public void setZan(Integer zan) {
        this.zan = zan;
    }

    @Override
    public String toString() {
        return "Comment{" +
                "id=" + id +
                ", content='" + content + '\'' +
                ", zan=" + zan +
                '}';
    }
}
